<template>
  <div class="massage">
    <div class="top">
			<span>
				<van-icon name="arrow-left"/>
			</span>
      <span>消息中心</span>
      <span>全部已读</span>
    </div>
    <div class="bottom">
      <div class="data" v-for="item in 4" :key="item" @click="getGroupchat()">
        <div class="image">
          <img src="../assets/cate.png"/>
        </div>
        <div class="shangjia">
          <div class="shangjia-top">
            <span>店铺名店铺名店铺名店铺名店铺名</span>
            <span>时间</span>
          </div>
          <div class="shangjia-bottom">
            <span>信息</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:"Massage",
  methods: {
    getGroupchat(){
      this.$router.push('/groupchat');
    }
  }
}
</script>

<style>
.massage {

}

.top {
  margin-top: 8px;
  width: 100%;
  background: #FFFFFF;
  height: 30px;
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  box-shadow: 0px 10px 10px -10px #999999;
}

.top span:nth-of-type(1) {
  margin-left: 20px;
}

.top span:nth-of-type(2) {
  font-weight: 700;
}

.top span:nth-of-type(3) {
  font-weight: 700;
  margin-right: 20px;
}

.bottom {
  margin-top: 50px;
}

.data {
  display: flex;
  flex-direction: row;
  height: 50px;
  border-bottom: 0.5px solid #e7e4e4;
  margin-bottom: 10px;
}

.shangjia {
  display: flex;
  flex-direction: column;
  width: 85%;
}

.image {
  height: 100%;
  width: 15%;
  margin-left: 10px;
}

.image img {
  border-radius: 50%;
}

.shangjia-top {
  display: flex;
  justify-content: space-between;
}

.shangjia-top span:nth-of-type(2) {
  color: darkgrey;
  margin-right: 5%;
}

.shangjia-bottom {
  margin-top: 5px;
}

.shangjia-bottom span {
  color: darkgrey;
}
</style>
